<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="../../../vue.js"></script>
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <button @click="tall+=10">+10</button>
      <button @click="tall-=10">-10</button>

      <template v-if="tall>=180">
        <p>您的身高为：{{tall}}</p>
        <p>很高</p>
      </template>
      <template v-else-if="tall>=170">
        <p>您的身高为：{{tall}}</p>
        <p>较高</p>
      </template>
      <template v-else-if="tall>=160">
        <p>您的身高为：{{tall}}</p>
        <p>不太高</p>
      </template>
      <template v-else>
        <p>您的身高为：{{tall}}</p>
        <p>有点矮</p>
      </template>
    </div>
    <script>
      const vm = new Vue({
        el: '#app',
        data() {
          return {
            tall: 140,
          };
        },
      });
    </script>
  </body>
</html>
